package mm.apk.libmm

import mm.apk.libmm.exts.maxLetter
import mm.apk.libmm.exts.richText
import org.junit.Test

import org.junit.Assert.*

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
    }


    @Test
    fun tRichText() {
        println(null.richText("123"))
        println("123".richText())
        println("123".richText("123"))
    }

    @Test
    fun tMaxLetter() {
        println(null.maxLetter(3))
        println("".maxLetter(3))
        println("12".maxLetter(3))
        println("123".maxLetter(3))
        println("1234".maxLetter(3))
    }
}
